package STUDENT.TranMinhVu.OOPS.ArrayExercises.BaiTapQuanLySachThuVien;

import java.util.List;

public class Controllers {
	Models objmodels = new Models();
	public boolean Kiemtrathongtin(BangQLMuonSach bql,List<Sach> booklist,List<BanDoc> readerlist){
		if (objmodels.Kiemtrabandoc(bql, booklist, readerlist)){
			if (objmodels.Kiemtradausach(bql)){
				if (objmodels.Kiemtrasach(bql, booklist, readerlist)){
					if (objmodels.Kiemtrasosach(bql)){
							return true;
						}return false;
					}return false;
				}return false;
			}return false;
	}
	
	public void BookInput(List<Sach> booklist){
		objmodels.BookInput(booklist);
	}
	
	public void BookOutput(List<Sach> booklist){
		objmodels.BookOutput(booklist);
	}
	
	public void ReaderInput(List<BanDoc> readerlist){
		objmodels.ReaderInput(readerlist);
	}
	
	public void ReaderOutput(List<BanDoc> readerlist){
		objmodels.ReaderOutput(readerlist);
	}
	
	public BangQLMuonSach FindReader(List<BangQLMuonSach> dsbql){
		return objmodels.FindReader(dsbql);
	}
}
	